﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cludg.Repository.Security
{
    using Domain.Users;

    public class UserSecurityInfo
    {
		public virtual string Id { get; set; }
		public virtual string Name { get; set; }
		public virtual string Email { get; set; }
		public virtual string PasswordHash { get; set; }
		public virtual string ThirdPartyIdent { get; set; }
		public virtual UserLoginType LoginType { get; set; }
		public virtual UserState State { get; set; }

        public static UserSecurityInfo CreateForUser(User user)
        {
            return new UserSecurityInfo() { Id = user.Id, Email = user.Email };
        }

        public enum UserLoginType {LoginPassword, ThirdParty};
        public enum UserState { NeedActivation, Active };
    }
}
